package com.neutech.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.neutech.service.UserService;

@Controller
@RequestMapping(value="/hospital")
public class UserController {
	@Autowired
	private UserService userService;
	@RequestMapping("/hosfind")
	public @ResponseBody void getUser(){
		userService.getAlla();
	}
	@RequestMapping("/hosupdate")
	public @ResponseBody void updateDname(){
		userService.updatedname();
	}
	@RequestMapping("/hosdelete")
	public @ResponseBody void deleteYa(){
		userService.deleteById();
	}
	@RequestMapping("/hosadd")
	public @ResponseBody void addDname(){
		userService.adddname();
	}
}
